package com.my.service.iml;

import com.my.service.MenuService;
import com.my.service.UserService;
import jakarta.annotation.Resource;
import org.hibernate.validator.internal.util.stereotypes.Lazy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author mars
 * @date 2025-03-03 10:04
 */
@Service
public class MenuServiceImpl implements MenuService {
    // 1. filed 注入
//    @Resource(name = "userService")
    @Autowired
//    @Lazy
    private UserService userService;


    // setter 注入
//    public void setUserService(UserService userService) {
//        this.userService = userService;
//    }
    // constructor 注入
//    public MenuServiceImpl(UserService userService) {
//        this.userService = userService;
//    }
}
